
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>主页</title>
    <style>
        #main{
            display: flex;
        }
        #main #left{
            width: 20%;
            border:1px solid red;
        }
        #main #right{
            width: 78%;
            border:1px solid blue;
        }
        li{
            list-style:none;
        }
    </style>
</head>
<body>

<h1>欢迎${USER.username} ,<a href="logout.jsp">退出</a> </h1>
    <div id="main">
        <div id="left">
            <ul>
                <li><a href="subjectServlet" target="mainFrame">课程信息</a> </li>
                <li><a href="studentServlet" target="mainFrame">学  生</a> </li>
            </ul>
        </div>
        <div id="right">
            <iframe  name="mainFrame" frameborder="0" width="100%" height="800px" src="index.jsp"/>
        </div>
    </div>
</body>
</html>
